package basic

import com.jzt.wotu.groovy.jdbc.Dao
import com.jzt.wotu.mvc.Model

public class Demo1 {

    static def ok() {
        return Model.newSuccess("OK")
    }

    static def getMerchandise() {
        def list = Dao.selectListAny("Demo1.loadAllMerchandise")
        return Model.newSuccess(list)
    }

    static def getBranch() {
        def list = Dao.selectListAny("Demo1.loadAllBranch")
        return Model.newSuccess(list)
    }
}